package com.design01_builder.pattern02_factory.simple_factory.service;

import com.design01_builder.pattern02_factory.simple_factory.entry.AwardInfo;
import com.design01_builder.pattern02_factory.simple_factory.entry.ResponseResult;

/**
 * @ClassName YouKuMemberFreeGoods
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/2 1:13
 */
public class YouKuMemberFreeGoods implements IFreeGoods {


    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        String phone = awardInfo.getExtMap().get("phone");
        System.out.println("发放优酷会员成功,绑定手机号: " + phone);
        return new ResponseResult("200","优酷会员发放成功!");
    }
}
